﻿<%@ Page Language="c#" CodeBehind="CustomerApplication.aspx.cs" AutoEventWireup="false"
    Inherits="CIS.CustomerApplication" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>CustomerApplication</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <style type="text/css">
        @import url( css/ppt.css );
    </style>
    <script language="javascript" type="text/javascript">
        function window.onload() {
            attachEvents();
        }

        function attachEvents() {
            var eles = document.getElementsByTagName("A");
            for (var i = 0; i < eles.length; i++) {
                var ele = eles.item(i);
                if (ele.id.indexOf('lbDelete') != -1) {
                    ele.attachEvent('onclick', __confirmDelete);
                }
            }
        }

        function __confirmDelete() {
            if (!confirm("确定删除该CIS信息/Sure To Delete ?\r\n")) {
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <table id="table1" cellpadding="0">
        <tr>
            <td>
                <table id="table2" cellpadding="0">
                    <tr>
                        <td>
                            <!--公告栏表格开始-->
                            <table id="table2" cellpadding="0">
                                <tr>
                                    <td>
                                        <asp:Image ID="iCustomerInfo" ImageUrl="images/title_AccountApplication.jpg" runat="server">
                                        </asp:Image>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                        <img src="images/title_right.jpg" alt="" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <table id="table1" cellpadding="0">
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r1.jpg" alt="" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <img src="images/table_c3_r1.jpg" alt="" />
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r1.jpg" alt="" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r3.jpg" alt="" />
                                                </td>
                                                <td colspan="3">
                                                    <!--此处填写内容-->
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbU" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbUserName" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbTranType" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="TranTypeDdl" runat="server" AutoPostBack="True">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbApplyDate" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbFromDate" runat="server"></asp:Label>
                                                                <asp:DropDownList ID="YearFromDdl" runat="server">
                                                                </asp:DropDownList>
                                                                <asp:Label ID="lbFromYear" runat="server"></asp:Label>
                                                                <asp:DropDownList ID="MonthFromDdl" runat="server">
                                                                </asp:DropDownList>
                                                                <asp:Label ID="lbFromMonth" runat="server"></asp:Label>
                                                                <asp:DropDownList ID="DayFromDdl" runat="server">
                                                                </asp:DropDownList>
                                                                <asp:Label ID="lbFromDay" runat="server"></asp:Label>
                                                                <br />
                                                                <asp:Label ID="lbToDate" runat="server"></asp:Label>
                                                                <asp:DropDownList ID="YearToDdl" runat="server">
                                                                </asp:DropDownList>
                                                                <asp:Label ID="lbToYear" runat="server"></asp:Label>
                                                                <asp:DropDownList ID="MonthToDdl" runat="server">
                                                                </asp:DropDownList>
                                                                <asp:Label ID="lbToMonth" runat="server"></asp:Label>
                                                                <asp:DropDownList ID="DayToDdl" runat="server">
                                                                </asp:DropDownList>
                                                                <asp:Label ID="lbToDay" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbCurrentInfo" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbCurrentRole" runat="server"></asp:Label><asp:DropDownList ID="CurrentRoleDdl"
                                                                    runat="server">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbCurrentProvinceInfo" runat="server"></asp:Label><asp:TextBox ID="CurrentProvinceInfoTxb"
                                                                    runat="server"></asp:TextBox><asp:Label ID="lbCurrentCatInfo" runat="server"></asp:Label><asp:TextBox
                                                                        ID="CurrentCatInfoTxb" runat="server"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbApplyInfo" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbApplyRole" runat="server"></asp:Label><asp:DropDownList ID="ApplyRoleDdl"
                                                                    runat="server">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbApplyProvinceInfo" runat="server"></asp:Label><asp:TextBox ID="ApplyProvinceInfoTxb"
                                                                    runat="server"></asp:TextBox><asp:Label ID="lbApplyCatInfo" runat="server"></asp:Label><asp:TextBox
                                                                        ID="ApplyCatInfoTxb" runat="server"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbApplyReason" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="ApplyReasonTxb" runat="server" TextMode="MultiLine"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbArea" runat="server"></asp:Label><asp:DropDownList ID="areaDdl"
                                                                    runat="server" AutoPostBack="True">
                                                                </asp:DropDownList>
                                                                <asp:Label ID="lbCat" runat="server"></asp:Label><asp:DropDownList ID="catDdl" runat="server"
                                                                    AutoPostBack="True">
                                                                </asp:DropDownList>
                                                                <asp:Label ID="lbProvince" runat="server"></asp:Label><asp:DropDownList ID="provinceDdl"
                                                                    runat="server" AutoPostBack="True">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbUserlist" runat="server"></asp:Label><asp:DropDownList ID="UserListDdl"
                                                                    runat="server" AutoPostBack="True">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbUser" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:ListBox ID="CurrentCustomerLB" runat="server"></asp:ListBox>
                                                                <asp:Button ID="addBtn" runat="server" Text="Add"></asp:Button><asp:ListBox ID="customerLB"
                                                                    runat="server"></asp:ListBox>
                                                                <asp:Button ID="DelBtn" runat="server" Text="Del"></asp:Button>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbResult" runat="server"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lbApplyResult" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="saveBtn" runat="server" Text="保存"></asp:Button><asp:Label ID="lbEdit"
                                                                    runat="server"></asp:Label><asp:CheckBox ID="EditCHK" runat="server" Enabled="False">
                                                                    </asp:CheckBox><asp:Label ID="lbApplyId" runat="server" Visible="False"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <asp:DataGrid ID="ApplyListDg" runat="server" DataKeyField="ApplyId" AutoGenerateColumns="False"
                                                        AllowPaging="True">
                                                        <EditItemStyle></EditItemStyle>
                                                        <ItemStyle></ItemStyle>
                                                        <Columns>
                                                            <asp:TemplateColumn HeaderText="Name">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Label14" Text='<%# DataBinder.Eval(Container.DataItem,"LoginName")%>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Date">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Label13" Text='<%# DataBinder.Eval(Container.DataItem, "ApplyDate")%>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Type">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Label2" Text='<%# DataBinder.Eval(Container.DataItem, "ApplyType")%>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Result">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Label3" Text='<%# DataBinder.Eval(Container.DataItem, "ApplyResult")%>'
                                                                        runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Edit">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="Imagebutton1" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ApplyId")%>'
                                                                        CommandName="modify" ImageUrl="images/icon_edit.gif" CausesValidation="False">
                                                                    </asp:ImageButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Delete">
                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:LinkButton runat="server" ID="lbDelete" CommandName="delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ApplyId")%>'
                                                                        Title="Delete">
																				<img src="images/icon_delete.gif" alt=""/>
                                                                    </asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
                                                        </Columns>
                                                        <PagerStyle HorizontalAlign="Right"></PagerStyle>
                                                    </asp:DataGrid>
                                                    <!--此处填写内容-->
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r2.jpg" alt="" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r4.jpg" alt="" />
                                                </td>
                                                <td>
                                                    <img src="images/table_c2_r4.jpg" alt="" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r4.jpg" alt="" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <!--公告栏表格结束-->
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
